package com.mxl.common.helper;

public enum ErrorCode {
	/**
	 * 失败.
	 */
	FAIL(2, "失败"),
	/**
	 * 成功.
	 */
	SUCC(1, "成功");

	private int value;

	private String desc;

	private ErrorCode(int value, String desc) {
		this.value = value;
		this.desc = desc;
	}

	/**
	 * @return the value
	 */
	public int getValue() {
		return value;
	}

	/**
	 * @return the desc
	 */
	public String getDesc() {
		return desc;
	}
}
